package com.samebuilding.service.impl;

import com.samebuilding.dao.UserDataDAO;
import com.samebuilding.domain.UserData;
import com.samebuilding.service.UserDataService;

public class UserDataServiceImp implements UserDataService {

	private UserDataDAO userDataDAO;
	public UserData find(int userNo) {
		return userDataDAO.find(userNo);
	}

	public void save(UserData ud) {
		userDataDAO.save(ud);
		
	}

	public void update(UserData ud) {
		userDataDAO.update(ud);
		
	}

	public UserDataDAO getUserDataDAO() {
		return userDataDAO;
	}

	public void setUserDataDAO(UserDataDAO userDataDAO) {
		this.userDataDAO = userDataDAO;
	}

	public void addMoney(int userNo, int money) {
		userDataDAO.addMoney(userNo, money);
		
	}

	public boolean bigThanMoney(int userNo, int money) {
		
		return userDataDAO.bigThanMoney(userNo, money);
	}



}
